<!--{include html_header}-->


<div id="logins">
	<!--{if option_yes('trsimple')}-->
		<div class="vcoupon">&raquo;&nbsp;<a href="/account/invite.php">邀请好友</a>&nbsp;&nbsp;&raquo;&nbsp;<a id="verify-coupon-id" href="javascript:;">{$INI['system']['couponname']}验证及消费登记</a>&nbsp;&nbsp;&raquo;&nbsp;<a href="javascript:;" onclick="return X.misc.locale();">简繁转换</a></div>
	<!--{else}-->
		<div class="vcoupon"><label class="welcome">第一团购网！团购的第一选择！全国统一客服电话 4000-456-056</label><label class="subscribe"><a href="/subscribe.php?ename={$city['ename']}">邮件订阅</a></label><label class="asks"><a href="/team/ask.php?id=1">问题答疑</a></label><label class="help" id="list-help"><a href="/help/tour.php">帮助中心</a></label><label class="add"><a rel="sidebar" title="第一团购网" href="javascript:;" rel="nofollow" onclick="javascript:addfavor('http://www.tuan001.com','第一团购网-团购的第一选择');return false;">加入收藏</a></label></div>
	<!--{/if}-->

</div>
<div id="hdw">
	<div id="hd">
        <div class="list-help-down" style="display: none;">
            <ul>
                <li><a href="/help/tour.php">如何团购</a></li>
                <li><a href="/help/faqs.php">常见问题</a></li>
                <li><a href="/about/terms.php">用户协议</a></li>
            </ul>
        </div>
		<div id="logo"><a href="/index.php" class="link"><img src="/static/css/i/logo.jpg" alt="{$INI['system']['sitename']}" /></a></div>
		<div class="guides">
			<!--{if count($hotcities)>1}-->
			<div id="guides-city-change">
            [<span>{$city['name']}</span>
            <span class="tri"></span>]
            </div>
			<div id="guides-city-list" class="city-list">
				<ul>${current_city($city['ename'], $hotcities)}</ul>
				<div class="other"><a href="/city.php">其他城市？</a></div>
			</div>
			<!--{/if}-->
		</div>
		<div id="searchbar">
			<form action="" id="indexSearchForm" method="get">
				<input type="text" class="kw" value="请输入商品名称" name="keyword" id="searchW">
				<input type="submit" class="searchbtn" value="">
				<label class="searchico" for="searchW"></label>
			</form>
		</div>
		<ul class="nav cf">${current_frontend()}</ul>          
		<div class="logins">
		<!--{if $login_user['username']}-->
				<!--<span class="username">欢迎您，<!--{if $_SESSION['ali_token']}-->
				${mb_strimwidth($login_user['realname'],0,10)}！
                <!--{else}-->
				${mb_strimwidth($login_user['username'],0,10)}！
				<!--{/if}--></span>-->
			<ul class="links">
            	<li class="username"><!--{if $login_user}-->
            欢迎您，<!--{if $_SESSION['ali_token']}-->
				${mb_strimwidth($login_user['realname'],0,10)}！
                <!--{else}-->
				${mb_strimwidth($login_user['username'],0,10)}！
				<!--{/if}-->
            <!--{/if}--></li>
				<li class="account" id="myaccount"><a href="/order/index.php">用户中心</a>
                </li>
				<li class="logout"><a href="/account/logout.php">退出</a></li>
			</ul>
		<!--{else}-->
			<ul class="links">
				<li class="login"><a href="/account/login.php">登录</a></li>
				<li class="logout"><a href="/account/signup.php">注册</a></li>
			</ul>
		<!--{/if}-->
			<div class="line islogin"></div>
		</div>
	<!--{if $login_user}-->
		<ul id="myaccount-menu" style="display:none;">${current_account(null)}</ul>
	<!--{/if}-->
	</div>
</div>
<!--{if $session_notice=Session::Get('notice',true)}-->
<div class="sysmsgw" id="sysmsg-success"><div class="sysmsg"><p>{$session_notice}</p><span class="close">关闭</span></div></div> 
<!--{/if}-->
<!--{if $session_notice=Session::Get('error',true)}-->
<div class="sysmsgw" id="sysmsg-error"><div class="sysmsg"><p>{$session_notice}</p><span class="close">关闭</span></div></div> 
<!--{/if}-->
